package com.his.his_system.controller.DataStatisticsController;

import com.his.his_system.domain.DzmHisCareOrderSub;
import com.his.his_system.service.DzmHisCareOrderSubService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 检查项目
 */
@RestController
@RequestMapping("InspectionItem")
public class InspectionItemController {

      @Resource
      private DzmHisCareOrderSubService dzmHisCareOrderSubService;




      /**
       * 查询全部检查项目信息
       */
      @GetMapping("xray")
      List<DzmHisCareOrderSub> xray(){

	  return dzmHisCareOrderSubService.xrayInfo();
      }

      /**
       * 根据类型查询
       */
      @GetMapping("query")
      List<DzmHisCareOrderSub> query(String typename){

            return dzmHisCareOrderSubService.queryInfo(typename);
      }


}
